URL
https://{host}:{port}/cerillion-ux/v1/{businessId}/adjustProductStock
URI Params
| name | type | description | required |
|---|
| businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit. | Y |
| name | type | description | required |
|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUID, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
Sample Request
{
"completedAdjustProductStockDate": "2023-11-22T12:08:56.000-05:00",
"description": "LCPR2.0 API TEST TP"
"adjustProductStockItem": [
{
"id": "03",
"adjustProductStockQuantity": {
"amount": 1
},
"productStockTarget": {
"id": "000000000000300645",
"stockedProduct": {
"productCharacterstic": [
{
"name": "CostCenter",
"value": "0162010401"
},
{
"name": "MovementType",
"value": "291"
},
{
"name": "GLAccount",
"value": "234234"
},
{
"name": "WBSElement",
"value": "234234"
}
],
"place": [
{
"role": "Plant",
"id": "7456"
},
{
"role": "StorageLocation",
"id": "123"
}
]
} }}]
}
Response
{
"id":"2022",
“description": "4900001465",
"adjustProductStockItem": [
{
"id": "03",
"adjustProductStockQuantity": {
"amount": 1
},
"productStockTarget": {
"id": "000000000000300645",
"stockedProduct": {
"productCharacterstic": [
{
"name": "CostCenter",
"value": "0162010401"
},
{
"name": "MovementType",
"value": "291"
},
{
"name": "GLAccount",
"value": "234234"
},
{
"name": "WBSElement",
"value": "234234"
}
],
"place": [
{
"role": "Plant",
"id": "7456"
},
{
"role": "StorageLocation",
"id": "123"
}
]
}
}
}
],
“state”: “accepted”
}
Key Considerations for LC CPE Capitalization in SAP
- completedAdjustProductStockDate accepts only "iso 8601 date time format with an offset to utc" format.
- ProductStockTarget.id accepts upto 18 alphanumeric characters
- Either WBSElement or costCenter should be sent for each BU
- WBSElement accepts upto 24 alphanumeric characters.
- Plant accepts upto 4 characters.